<?php
namespace Client\Controller;
use Think\Controller;
use Org\Net\Http;
class TestController extends Controller {
    public function index(){
    	$test = D("Test");
    	for($i=13;$i<23;$i++){
	    	$result =  $test->where("id={$i}")->setInc("status",1,20);
	    	echo $result."<br/>";
    	}
    }
    public function test(){
//     	file_put_contents("Public/Log/log.txt", "get:".json_encode($_GET)."\r\n",FILE_APPEND|LOCK_EX);
//     	file_put_contents("Public/Log/log.txt", "post:".json_encode($_POST)."\r\n",FILE_APPEND|LOCK_EX);
//     	var_dump($_GET);
    	$this->ajaxReturn($_GET);
    }
}